// todo: remove duplication, refactor
@import "~bootstrap/less/bootstrap";
@import "./variables.less";
@import "./steering.less";
@import "./nodeDetails.less";
@import "./search.less";

body {
  background-color: @background;
  font-family: 'Roboto', sans-serif;
  overflow: hidden; // avoid horizontal scroll bar triggered by node-hover-tooltip
}

#app {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.graph-full-size {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
}

h1, h2 {
  color: #efefef;
}

h4 {
  font-family: 'PT Sans', sans-serif;
}

.window-container {
  background-color: rgba(0,0,0, 0.8);
  position: absolute;
}

.window-list-content {
  overflow-y: auto;
  overflow-x: hidden;
  color: #7F7F7F;
}
.window-list-content::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 5px;
}
.window-list-content::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.5);
}
.window-list-content::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
}

.node-focus {
  cursor: pointer;
}

.search-results-window {
  left: 16px;
  top: 47px;
  padding: 10px;
  width: 395px;
  max-height: 250px;
}

.no-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-title {
  strong {
    color: @foreground;
    font-weight: normal;
    font-size: 1.2em;
  }
  .node-name {
    color: @foreground;
  }
}

.label {
  color: @foreground;
  background: @background;
  position: absolute;
  z-index: 1;
}

.loading {
  padding: 10px;
  left: 10px;
  top: 48px;
}

.about {
  padding: 10px;
  right: 10px;
  top: 0px;
}

@media (max-width: @screen-sm-min) {
  .about {
    padding: 10px;
    right: 13px;
    bottom: 22px;
    top: inherit;
  }
}

.node-hover-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: @foreground;
  padding: 4px 10px;;
  pointer-events: none;
  min-width: 200px;
  border: 1px solid @border-color;

  span {
    margin: 0 5px;
  }
}

.in-degree {
  color: #fff10cff;
  cursor: pointer;
}

.window-indegree {
  color: #90EE90;
}

.window-outdegree {
  color: #F08080;
}

.out-degree {
  color: #1189ffff;
  cursor: pointer;
}

.node-hover-list {
  position: absolute;
  background: @background;
  right: -20px;
  bottom: 10px;
  height: 150px;
  color: @foreground;
  padding: 4px;
  pointer-events: none;
  width: 220px;
  overflow-y: scroll;
  ul {
    padding: 0;
  }
  li {
    list-style-type: none;
  }
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

a.reset-color,
a.reset-color:hover,
a.reset-color:focus {
  text-decoration: none;
  color: inherit;
}

a.media:hover, a.media:focus {
  text-decoration: none;
  color: #FF008C;
  border: none;
}

a.media {
  color: @foreground;
  background-color: black;
  border: none;
}

.error {
  color: pink;
}

.error-details {
  color: wheat;
}

.no-pads > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

a.deco-none {
  color: inherit;
  text-decoration: none;
}

a.deco-none:link {
  color: inherit;
  text-decoration: none;
}

a.deco-none:hover {
  color: inherit;
  text-decoration: none;
}

.text-center {
  text-align: center;
}
